QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl serialport
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\'"
CONFIG += debug_and_release  c++11
CONFIG(debug, debug|release):DESTDIR = ../x64/debug
else:DESTDIR = ../x64/release
CONFIG(debug, debug|release):OBJECTS_DIR += debug
else:OBJECTS_DIR += release
UI_DIR=../3dView
QMAKE_LFLAGS += -no-pie

RESOURCES += \
    resources.qrc

FORMS += \
    mainwindow.ui

HEADERS += \
    EasyGL/EasyCamera.h \
    EasyGL/EasyCameraTransition.h \
    EasyGL/EasyGeometry.h \
    EasyGL/EasyLight.h \
    EasyGL/EasyMaterial.h \
    EasyGL/EasyMesh.h \
    EasyGL/EasyScene.h \
    MainWindow.h \
    OpenGLWidget.h \
    SquareGeometry.h \
    basicmaterial.h

SOURCES += \
    EasyGL/EasyCamera.cpp \
    EasyGL/EasyCameraTransition.cpp \
    EasyGL/EasyGeometry.cpp \
    EasyGL/EasyLight.cpp \
    EasyGL/EasyMaterial.cpp \
    EasyGL/EasyMesh.cpp \
    EasyGL/EasyScene.cpp \
    MainWindow.cpp \
    OpenGLWidget.cpp \
    SquareGeometry.cpp \
    basicmaterial.cpp \
    main.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
